| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

ScriptWrapper.h
1 // ScriptWrapper.h
3 //
5
6 namespace nkAstraeus::nkScriptsWrap
7 {
11 class ScriptWrapper final
12 {
13 public :
14
15 // Env
21 static void updateEnvironment (nkScripts::Environment* env) ;
22
23 // Callbacks
24 // Constructor, destructor
35 static void* constructor (const nkScripts::DataStack& stack) ;
41 static void destructor (void* toDestroy) ;
42 // Getters
53 static nkScripts::OutputValue getTargetInterpreter (const nkScripts::DataStack& stack) ;
64 static nkScripts::OutputValue getName (const nkScripts::DataStack& stack) ;
75 static nkScripts::OutputValue getSources (const nkScripts::DataStack& stack) ;
86 static nkScripts::OutputValue getLastCompilationResult (const nkScripts::DataStack& stack) ;
87 // Setters
98 static nkScripts::OutputValue setTargetInterpreter (const nkScripts::DataStack& stack) ;
109 static nkScripts::OutputValue setName (const nkScripts::DataStack& stack) ;
120 static nkScripts::OutputValue setSources (const nkScripts::DataStack& stack) ;
121 // Manipulations
132 static nkScripts::OutputValue load (const nkScripts::DataStack& stack) ;
143 static nkScripts::OutputValue unload (const nkScripts::DataStack& stack) ;
144 // Global
157 static nkScripts::OutputValue call (const nkScripts::DataStack& stack) ;
158 } ;
159 }
nkScripts::Environment
Defines an environment in which scripts can execute.
Definition: Environment.h:14
nkAstraeus::nkScriptsWrap::ScriptWrapper::updateEnvironment
static void updateEnvironment(nkScripts::Environment *env)
nkMemory::BufferView
A view over data.
Definition: BufferView.h:18
nkAstraeus::nkScriptsWrap::ScriptWrapper
Wraps a nkScripts::Script and offers functions for use in scripting.
Definition: ScriptWrapper.h:12
nkAstraeus::nkScriptsWrap::ScriptWrapper::getSources
static nkScripts::OutputValue getSources(const nkScripts::DataStack &stack)
nkAstraeus::nkScriptsWrap::ScriptWrapper::getTargetInterpreter
static nkScripts::OutputValue getTargetInterpreter(const nkScripts::DataStack &stack)
nkAstraeus::nkScriptsWrap::ScriptWrapper::setTargetInterpreter
static nkScripts::OutputValue setTargetInterpreter(const nkScripts::DataStack &stack)
nkAstraeus::nkScriptsWrap::ScriptWrapper::setSources
static nkScripts::OutputValue setSources(const nkScripts::DataStack &stack)
nkAstraeus::nkScriptsWrap::ScriptWrapper::call
static nkScripts::OutputValue call(const nkScripts::DataStack &stack)
nkAstraeus::nkScriptsWrap::ScriptWrapper::getLastCompilationResult
static nkScripts::OutputValue getLastCompilationResult(const nkScripts::DataStack &stack)
nkScripts::FunctionParameter
A function parameter, used within the stack of arguments.
Definition: FunctionParameter.h:25
nkAstraeus::nkScriptsWrap::ScriptWrapper::setName
static nkScripts::OutputValue setName(const nkScripts::DataStack &stack)
nkAstraeus::nkScriptsWrap::ScriptWrapper::load
static nkScripts::OutputValue load(const nkScripts::DataStack &stack)
nkAstraeus::nkScriptsWrap
Encompasses the wrapping of nkScripts for scripting.
Definition: Constants.h:7
nkAstraeus::nkScriptsWrap::ScriptWrapper::unload
static nkScripts::OutputValue unload(const nkScripts::DataStack &stack)
nkAstraeus::nkScriptsWrap::ScriptWrapper::constructor
static void * constructor(const nkScripts::DataStack &stack)
nkAstraeus::nkScriptsWrap::ScriptWrapper::destructor
static void destructor(void *toDestroy)
nkAstraeus::nkScriptsWrap::ScriptWrapper::getName
static nkScripts::OutputValue getName(const nkScripts::DataStack &stack)